CC = gcc
CFLAGS = -Wall -Wextra -std=c99
LDFLAGS =

all: main

main: main.o log.o
	$(CC) $(LDFLAGS) $^ -o $@

main.o: main.c log.h
	$(CC) $(CFLAGS) -c $< -o $@

log.o: log.c log.h
	$(CC) $(CFLAGS) -c $< -o $@

.PHONY: clean

clean:
	rm -f *.o main